/**
 * 页面位置内容
 * @author luguoxiang
 * @date 2023-03-19
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
import { IConfigSchema } from '@/soar';

const fieldList: IConfigSchema<any>[] = [
  {
    field: 'coverImage',
    label: '图片',
    dataType: 'img',
    params: 'url',
    table: {
      width: 100,
    },
    search: false,
    form: {
      slots: 'img',
      rules: true,
    },
  },
  {
    field: 'title',
    label: '标题',
    dataType: 'string',
    form: {
      rules: true,
    },
  },
  {
    field: 'subtitle',
    label: '副标题',
    dataType: 'string',
    form: {
      component: 't-textarea',
    },
  },
  {
    field: 'metadata',
    label: '元数据',
    dataType: 'string',
    form: {
      component: 't-textarea',
    },
  },
  {
    field: 'status',
    label: '状态',
    dataType: 'boolean',
    params: '禁用,启用',
    table: {
      width: 100,
    },
  },
  {
    field: 'sort',
    label: '排序',
    dataType: 'number',
    table: {
      width: 100,
    },
  },
];

export default fieldList;
